from selenium.webdriver.common.by import By
from pom.baseActivity import BaSeActivity

"""
抽屉页面
"""

class TraggleActivity(BaSeActivity):

    _avatar_btn = (By.XPATH,'//*[@resource-id="org.cnodejs.android.md:id/layout_info"]/*[@resource-id="org.cnodejs.android.md:id/img_avatar"]')

    @property
    def avatar_btn(self):
        """
        头像组件
        :return:
        """
        return self.driver.find_element(*self._avatar_btn)




